<%--
  Created by IntelliJ IDEA.
  User: 19538
  Date: 2022/2/11
  Time: 10:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--application/x-www-form-urlencoded：表单 默认提交数据类型，直接提交简单数据类型
multipart/form-data：可以提交文件符合简单数据类型--%>

<form action="/upload" method="post" enctype="multipart/form-data">
    <input type="text" name="username" value="小杰">
    <input type="file" name="file">

    <input type="submit" value="上传文件">
</form>

<a href="/download?imgName=6ffaeb60-5920-4d40-9aa7-494973c1bd1b1号.jpg">下载图片</a>

</body>
</html>
